﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml.Linq;

namespace NeonMika.EightTracks.Responses
{
    public class ReviewsResponse : Response
    {
        List<Review> reviews = null;

        public List<Review> Reviews
        {
            get { return reviews; }
            set { reviews = value; }
        }

        public ReviewsResponse(XElement xml) : base(xml)
        {
            Reviews = new List<Review>();
            var mixes = from rev in xml.Descendants("review") select rev;
            foreach ( var x in mixes )
                Reviews.Add(new Review((XElement)x));
        }
    }
}
